package calao;

import java.util.HashMap;


public abstract class Service 
{

	static class Map extends HashMap<String,Service> { }
	
	Workspace ws;

	/** Gets the workspace this service was bound to.
	 */
	public Workspace getWorkspace()
	{
		return ws;
	}

	/** Initializes this service.
	 * By default this method does nothing. Application developers should override
	 * this to perform appropriate initialization.
	 * This method is called after the workspace-startup application notification cycle, 
	 * i.e. after calls to {@link Application#onOpen(Workspace)} on registered applications.
	 */
	public void init() { }

}
